package com.company.hotel.web;

import com.company.hotel.core.Result;
import com.company.hotel.core.ResultGenerator;
import com.company.hotel.model.pojo.User;
import com.company.hotel.service.UsersService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Controller
public class TestController {
    @Resource
    private UsersService usersService;

    @RequestMapping("/success")
    public String goSuccess() {
        return "/success";
    }
    @RequestMapping("/login")
    public String gologin() {
        return "/login";
    }
    @RequestMapping("/norole")
    public String norole() {
        return "/norole";
    }
}

